import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/Home"
  },
  {
    path: '/home',
    name: 'Home',
    // meta: {
    //   scrollToTop: true
    // },
    component: () => import('../views/Home.vue')
  },
  {
    path: '/articles',
    name: 'Articles',
    component: () => import('../views/Articles.vue')
  },
  {
    path: '/list',
    name: 'List',
    component: () => import('../views/List.vue')
   },
  // {
  //   path: '/index',
  //   name: 'Index',
  //   component: () => import('../views/Index.vue')
  // }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
